package distance;

public class Point3d
{
    public double x;
    public double y;
    public double z;

    public double getX()
    {
        return x;
    }

    public void setX(double x)
    {
        this.x = x;
    }

    public double getY()
    {
        return y;
    }

    public void setY(double y)
    {
        this.y = y;
    }

    public double getZ()
    {
        return z;
    }

    public void setZ(double z)
    {
        this.z=z;
    }

    public Point3d() {}
    public Point3d(String location)
    {
        super();
        String[] p1 = location.split(",");
        this.x = Double.valueOf(p1[0]);
        this.y = Double.valueOf(p1[1]);
        this.z = Double.valueOf(p1[2]);
    }
}
